import request from "@/utils/request";

export function getSaleQuotations(paramters) {
    return request({
        url: "api/v1/sales/quotations",
        method: "get",
        params: paramters,
        businessServer: true,
    });
}

export function getSaleQuotation(id) {
    return request({
        url: "api/v1/sales/quotations/" + id,
        method: "get",
        businessServer: true,
    });
}

export function addSaleQuotation(data) {
    return request({
        url: "api/v1/sales/quotations",
        method: "post",
        data: data,
        businessServer: true,
    });
}

export function updateSaleQuotation(data) {
    return request({
        url: "api/v1/sales/quotations",
        method: "put",
        data: data,
        businessServer: true,
    });
}

export function deleteSaleQuotation(id) {
    return request({
        url: "api/v1/sales/quotations/" + id,
        method: "delete",
        businessServer: true,
    });
}
